# -*- coding: utf-8 -*-
"""
Created on Fri May 17 15:19:35 2024

@author: 48848
"""
from random import randint      
z = 1
x = randint(1,6)+randint(1,6)
print('第1次你摇到了',x)
if x==7 or x==11:
    print("玩家胜")
elif x==2 or x==3 or x==12:
    print('庄家胜')
else:
    y = randint(1,6)+randint(1,6)
    #if y==7 or y==x:
        #print('第',z + 1,'次你摇到了', y)
    while y!=7 and y!=x:
        z = z+1
        print('第',z,'次你摇到了',y)
        y = randint(1,6)+randint(1,6)
    if y==7:
        print('第',z + 1,'次你摇到了', y)
        print('庄家胜')
    if y==x:
        print('第',z + 1,'次你摇到了', y)
        print('玩家胜')
        
"""
while True:
        y = randint(1, 6) + randint(1, 6)
        z = z + 1
        print(f'第{z}次你摇到了', y)
        if y == 7:
            print('庄家胜')
            break
        elif y == x:
            print('玩家胜')
            break
"""
        